<?php
include "./fun.php";
$db=conndb();
$list=get_Children_Class(21, $db);
$id=isset($_GET["id"])?$_GET["id"]:'';
// product_detail
$sql_detail="select * from product where id='{$id}'";
$res_detail=query1($db, $sql_detail, false);
$productSortid=$res_detail["sortid"];
$detail="select * from sortclass where id='{$productSortid}'";
$name=query1($db, $detail, false);
$data=["code"=>0,"msg"=>"操作成功","list"=>$list,"detail"=>$res_detail,"name"=>$name["sortname"]];
echo json_encode($data, JSON_UNESCAPED_UNICODE);
